﻿using RTW.Core.Attributes;
using RTW.Core.Entity;
using System;

namespace RTW.Model
{
    /// <summary>
    /// 个人诉讼图片表
    /// </summary>
    [Serializable]
    [Table(Name = "Personal_SuSong_Pages")]
    public partial class PersonalSuSongPages : IEntityBase
    {
        /// <summary>
        /// id
        /// </summary>		
        [Id(true)]
        public string ID { get; set; }

        /// <summary>
        /// 案卷表id
        /// </summary>		
        public string FilesID { get; set; }

        /// <summary>
        /// 文件名
        /// </summary>		
        public string FileName { get; set; }

        /// <summary>
        /// 显示名称
        /// </summary>		
        public string ShowName { get; set; }

        /// <summary>
        /// 文件后缀名
        /// </summary>		
        public string FileExt { get; set; }

        /// <summary>
        /// 类型
        /// </summary>		
        public TypeClass Type { get; set; }

        /// <summary>
        /// 索引
        /// </summary>		
        public int? PIndex { get; set; }

        /// <summary>
        /// 文件路径
        /// </summary>	
        public string FilePath { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>		
        public DateTime? AddTime { get; set; }

        /// <summary>
        /// 单位ID
        /// </summary>		
        public int? DWID { get; set; }
    }

    public enum TypeClass
    {
        封面 = 1,
        目录 = 2,
        正文 = 3,
        备考 = 4
    }
}
